import java.util.Scanner;

public class Solution {

    public static void main(String[] args) {
        MySingleList mySingleList = new MySingleList();
        mySingleList.addFirst(11);
        mySingleList.addFirst(22);
        mySingleList.addFirst(33);
        mySingleList.addFirst(44);
        mySingleList.addFirst(55);
        mySingleList.display();

        mySingleList.reverseList();

    }
}
